CXX_DEBUG_FLAGS=-g3 -DDEBUG_ALL
CXX_RELEASE_FLAGS=-O3

all: release

debug: CXXFLAGS+=$(CXX_DEBUG_FLAGS)
debug: tools

release: CXXFLAGS+=$(CXX_RELEASE_FLAGS)
release: tools

tools: deckDrawTest

deckDrawTest: deckDrawTest.o deck.o card.o
	mkdir -p tools/
	g++ $(CXXFLAGS) deckDrawTest.o deck.o card.o -o tools/deckDrawTest

deckDrawTest.o: deckDrawTest.cpp
	g++ $(CXXFLAGS) -c deckDrawTest.cpp -o deckDrawTest.o

deck.o: deck.cpp deck.h card.o
	g++ $(CXXFLAGS) -c deck.cpp -o deck.o

card.o: card.cpp card.h
	g++ $(CXXFLAGS) -c card.cpp -o card.o

clean:
	rm -rf *.o tools/
